package com.common.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@TableName("reimburse")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Reimburse {

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 申请ID (关联apply表的id)
     */
    @TableField("apply_id")
    private Integer applyId;

    /**
     * 计划ID (关联plan表的id)
     */
    @TableField("plan_id")
    private Integer planId;

    /**
     * 实际报销金额 (单位：分)
     */
    @TableField("amount")
    private int amount;

    /**
     * 报销明细说明
     */
    @TableField("detail")
    private String detail;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;
}